package fun.sssdnsy.dao;

import fun.sssdnsy.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Desc
 * @Author pengzh
 * @Since 2023-02-28
 */
public interface UserDao {

    @Select("SELECT * FROM user  where id = #{id}")
    User queryUserInfo(User user);

    @Select("SELECT id, name,age,createTime,updateTime FROM user")
    List<User> listUsers();

}
